package com.lkd.mapper;

import com.github.pagehelper.Page;
import com.lkd.entity.Sku;
import com.lkd.vo.SkuVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SkuMapper {

    @Insert("insert into tb_sku (brand_Name,class_id,price,sku_image,sku_name,unit,create_time,update_time) values (#{brandName},#{classId},#{price},#{skuImage},#{skuName},#{unit},now(),now())")
    void insert(Sku sku);

    Page<SkuVo> selectByPage(String skuName);

    void update(Sku sku);
}
